﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Workstation
{
    /// <summary>
    /// 工位信息更新命令类
    /// </summary>
    public class UpdateWorkstationCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工位名称
        /// </summary>
        public string WorkstationName { get; set; }
        /// <summary>
        /// 工位描述
        /// </summary>
        public string Workstationdesc { get; set; }

        /// <summary>
        /// 所属产线
        /// </summary>
        public int Productionid { get; set; }

        /// <summary>
        /// 所属工序
        /// </summary>
        public int Processid { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(50)]
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
